<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>css自定义咖啡杯</title>
  <link rel="stylesheet" href="index.css">
</head>
<body>
  <div class="cup">
    <div class="cup-body">
      <div class="layer coffee">1</div>
      <div class="layer water">2</div>
    </div>
  </div>
</body>
</html>